package com.example.javawebproject.util;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;

/**
 * @author ：zhaoweiwei
 * @date ：创建于 2024/11/28 10:29
 * @description：
 * @modified By：
 * @version: 1.0.0
 */
public class C3p0Utils {
    private static DataSource ds;
    static {
        ds = new ComboPooledDataSource();
    }
    public static DataSource getDataSource() {
        return ds;
    }
}